

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class PersonsRules
{
System.Int64 _ID =-1;
public System.Int64 ID
{
get { return _ID;}
set { _ID = value;}
}
System.Int64 _PersonsID =-1;
public System.Int64 PersonsID
{
get { return _PersonsID;}
set { _PersonsID = value;}
}
System.Int64 _RuleID =-1;
public System.Int64 RuleID
{
get { return _RuleID;}
set { _RuleID = value;}
}
public PersonsRules()
{
}
public PersonsRules(System.Int64 __PersonsID,System.Int64 __RuleID)
{
_PersonsID = __PersonsID;
_RuleID = __RuleID;
}
public PersonsRules(System.Int64 __ID,System.Int64 __PersonsID,System.Int64 __RuleID)
{
_ID = __ID;
_PersonsID = __PersonsID;
_RuleID = __RuleID;
}


             public override bool Equals(object obj)
         {
             if (obj is PersonsRules)
             {
                 PersonsRules newObj = (PersonsRules)obj;

                 if (newObj.ID == this.ID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
